import request from '@/utils/request'

export function nav(params) {
  return request({
    url: '/admin/sysReportCategory/list',
    method: 'get',
    params: params
  })
}

export function list(params) {
  return request({
    url: '/admin/sysReport/list',
    method: 'get',
    params: params
  })
}

//打印
export function print(id, params) {
  return request({
    url: `${process.env.VUE_APP_BASE_API}/admin/report/print/${id}`,
    method: 'get',
    params: params
  })
}

export function templateList(params) {
  return request({
    url: '/admin/sysReport/templateList',
    method: 'get',
    params: params
  })
}

export function add(ids) {
  return request({
    url: '/admin/sysReport/add/' + ids,
    method: 'post'
  })
}

export function exportReport(ids) {
  return request({
    url: '/report/export/' + ids,
    method: 'get'
  })
}

export function orderProductList(params) {
  return request({
    url: '/report/orderSaleReport/productList',
    method: 'get',
    params: params
  })
}

export function orderSummary(params) {
  return request({
    url: '/report/orderSaleReport/summary',
    method: 'get',
    params: params
  })
}

export function warehouseProductList(params) {
  return request({
    url: '/report/warehouseSaleReport/productList',
    method: 'get',
    params: params
  })
}

export function warehouseSummary(params) {
  return request({
    url: '/report/warehouseSaleReport/summary',
    method: 'get',
    params: params
  })
}

export function emptyMemberList(params) {
  return request({
    url: '/report/emptyBarrelReport/memberList',
    method: 'get',
    params: params
  })
}

export function waterTicketReport(params) {
  return request({
    url: '/report/WaterTicketReport/productList',
    method: 'get',
    params: params
  })
}

export function waterTicketSummary(params) {
  return request({
    url: '/report/WaterTicketReport/summary',
    method: 'get',
    params: params
  })
}

export function emptySummary(params) {
  return request({
    url: '/report/emptyBarrelReport/summary',
    method: 'get',
    params: params
  })
}

export function memberList(params) {
  return request({
    url: '/report/VirtualPledgeReport/memberList',
    method: 'get',
    params: params
  })
}

export function virtualPledgeSummary(params) {
  return request({
    url: '/report/VirtualPledgeReport/summary',
    method: 'get',
    params: params
  })
}
export function employeeCountList(params) {
  return request({
    url: '/report/supplyCountReport/employeeCountList',
    method: 'get',
    params: params
  })
}
export function allocateCountReport(params) {
  return request({
    url: '/report/allocateCountReport/productList',
    method: 'get',
    params: params
  })
}
export function allocateSummary(params) {
  return request({
    url: '/report/allocateCountReport/summary',
    method: 'get',
    params: params
  })
}
export function checkCountReport(params) {
  return request({
    url: '/report/checkCountReport/productList',
    method: 'get',
    params: params
  })
}
export function checkSummary(params) {
  return request({
    url: '/report/checkCountReport/summary',
    method: 'get',
    params: params
  })
}
export function inSaleCountReport(params) {
  return request({
    url: '/report/inSaleCountReport/inSaleList',
    method: 'get',
    params: params
  })
}
export function inSaleSummary(params) {
  return request({
    url: '/report/inSaleCountReport/summary',
    method: 'get',
    params: params
  })
}

export function inStockCountReportList(params) {
  return request({
    url: '/report/inStockCountReport/productList',
    method: 'get',
    params: params
  })
}

export function saleFlowList(params) {
  return request({
    url: '/report/saleFlowCountReport/saleFlowList',
    method: 'get',
    params: params
  })
}
export function inStockSummary(params) {
  return request({
    url: '/report/inStockCountReport/summary',
    method: 'get',
    params: params
  })
}


